package com.xiaocz.hblsubstitutedriving.model;

import java.math.BigDecimal;

/**
 * Time:2019/7/4
 * Created by xiaocz
 * Describe 订单详情
 */
public class OrderInfo {

    /// 订单id
    private String id;
    /// 订单编号
    private String orderNo;
    /// 司机id
    private String driver_id;
    /// 客户电话
    private String cusphone;
    /// 出发地址
    private String chufaaddress;
    /// 出发地经度
    private String chufalong;
    /// 出发地纬度
    private String chufalat;
    /// 代驾出发时间
    private String starttime;
    /// 目的地地址
    private String mudiaddress;
    /// 目的地经度
    private String mudilong;
    /// 目的地纬度
    private String mudilat;
    /// 等候时间（分钟）
    private String waittime;
    /// 代驾结束时间
    private String endtime;
    /// 计价方式（一口价，标准价格）
    private int pricetype;
    /// 下单时间
    private String xiadantime;
    /// 接单时间
    private String jiedantime;
    //司机状态 1-前往客户处  2-到达客户处 3-代驾中 4-代驾结束 5-未接单
    private String drivestatus;
    /// 订单状态1未接单 2已接单 3已完成 4客户取消 5司机取消 6超时取消
    private int orderstatus;
    /// 前往客户处时间
    private String qianwangtime;
    /// 到达客户处时间
    private String daodatime;
    /// 代驾总时长
    private String drivetotaltime;
    /// 代驾总里程（公里）
    private String drivetotalmile;
    /// 订单类型（自建或者云订单）
    private String ordertype;
    /// 优惠券id
    private String coupon_id;
    /// 优惠金额
    private String discountmoney;
    /// 等候费
    private String waitmoney;
    /// 其他费用名称
    private String othermoneytxt;
    /// 其他费用金额
    private String othermoney;
    /// 保险费
    private String insurancemoney;
    /// 起步公里数
    private String qibukm;
    /// 起步价
    private String qibumoney;
    /// 超过公里数
    private String chaochukm;
    /// 超出金额
    private String chaochumoney;
    /// 订单总金额
    private String money;
    /// 支付状态
    private String paystatus;
    /// 支付方式
    private String paytype;
    /// 是否投诉(0不是，1是)
    private String tousustatus;
    /// 投诉时间
    private String tousutime;
    /// 投诉原因
    private String tousutxt;
    /// 是否取消(0不是，1是)
    private String cancelstatus;
    /// 取消时间
    private String canceltime;
    /// 取消原因
    private String canceltxt;
    /// 订单创建时间
    private String createtime;
    ///轨迹Id
    private long traceId;
    //订单轨迹
    private String locusdata;
    private String tempname;//补贴名称
    private String tempprice;//补贴费用
    private String iswaittimeout;//0未超时等待，1超时等待
    private String shishoumoney;//实收金额
    private String royaltymoney;//提成金额
    private String royalty;//提成比例
    private String reward_money;//司机推荐分成;

    public BigDecimal getReward_money() {
        if(reward_money!=null){
            return new BigDecimal(reward_money);
        }else {
            return new BigDecimal("0");
        }
    }

    public void setReward_money(String reward_money) {
        this.reward_money = reward_money;
    }


    public String getShishoumoney() {
        return shishoumoney;
    }

    public void setShishoumoney(String shishoumoney) {
        this.shishoumoney = shishoumoney;
    }

    public BigDecimal getRoyaltymoney() {
        if(royaltymoney!=null){
            return new BigDecimal(royaltymoney);
        }else {
            return new BigDecimal("0");
        }
    }

    public void setRoyaltymoney(String royaltymoney) {
        this.royaltymoney = royaltymoney;
    }

    public String getRoyalty() {
        return royalty;
    }

    public void setRoyalty(String royalty) {
        this.royalty = royalty;
    }

    public String getIswaittimeout() {
        return iswaittimeout;
    }

    public void setIswaittimeout(String iswaittimeout) {
        this.iswaittimeout = iswaittimeout;
    }

    public String getTempname() {
        return tempname;
    }

    public void setTempname(String tempname) {
        this.tempname = tempname;
    }

    public String getTempprice() {
        return tempprice;
    }

    public void setTempprice(String tempprice) {
        this.tempprice = tempprice;
    }

    public long getTraceId() {
        return traceId;
    }

    public void setTraceId(long traceId) {
        this.traceId = traceId;
    }

    public String getLocusdata() {
        return locusdata;
    }

    public void setLocusdata(String locusdata) {
        this.locusdata = locusdata;
    }

    public String getDrivestatus() {
        return drivestatus;
    }

    public void setDrivestatus(String drivestatus) {
        this.drivestatus = drivestatus;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getDriver_id() {
        return driver_id;
    }

    public void setDriver_id(String driver_id) {
        this.driver_id = driver_id;
    }

    public String getCusphone() {
        return cusphone;
    }

    public void setCusphone(String cusphone) {
        this.cusphone = cusphone;
    }

    public String getChufaaddress() {
        return chufaaddress;
    }

    public void setChufaaddress(String chufaaddress) {
        this.chufaaddress = chufaaddress;
    }

    public String getChufalong() {
        return chufalong;
    }

    public void setChufalong(String chufalong) {
        this.chufalong = chufalong;
    }

    public String getChufalat() {
        return chufalat;
    }

    public void setChufalat(String chufalat) {
        this.chufalat = chufalat;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getMudiaddress() {
        return mudiaddress;
    }

    public void setMudiaddress(String mudiaddress) {
        this.mudiaddress = mudiaddress;
    }

    public String getMudilong() {
        return mudilong;
    }

    public void setMudilong(String mudilong) {
        this.mudilong = mudilong;
    }

    public String getMudilat() {
        return mudilat;
    }

    public void setMudilat(String mudilat) {
        this.mudilat = mudilat;
    }

    public String getWaittime() {
        return waittime;
    }

    public void setWaittime(String waittime) {
        this.waittime = waittime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public int getPricetype() {
        return pricetype;
    }

    public void setPricetype(int pricetype) {
        this.pricetype = pricetype;
    }

    public String getXiadantime() {
        return xiadantime;
    }

    public void setXiadantime(String xiadantime) {
        this.xiadantime = xiadantime;
    }

    public String getJiedantime() {
        return jiedantime;
    }

    public void setJiedantime(String jiedantime) {
        this.jiedantime = jiedantime;
    }

    public int getOrderstatus() {
        return orderstatus;
    }

    public void setOrderstatus(int orderstatus) {
        this.orderstatus = orderstatus;
    }

    public String getQianwangtime() {
        return qianwangtime;
    }

    public void setQianwangtime(String qianwangtime) {
        this.qianwangtime = qianwangtime;
    }

    public String getDaodatime() {
        return daodatime;
    }

    public void setDaodatime(String daodatime) {
        this.daodatime = daodatime;
    }

    public String getDrivetotaltime() {
        return drivetotaltime;
    }

    public void setDrivetotaltime(String drivetotaltime) {
        this.drivetotaltime = drivetotaltime;
    }

    public String getDrivetotalmile() {
        return drivetotalmile;
    }

    public void setDrivetotalmile(String drivetotalmile) {
        this.drivetotalmile = drivetotalmile;
    }

    public String getOrdertype() {
        return ordertype;
    }

    public void setOrdertype(String ordertype) {
        this.ordertype = ordertype;
    }

    public String getCoupon_id() {
        return coupon_id;
    }

    public void setCoupon_id(String coupon_id) {
        this.coupon_id = coupon_id;
    }

    public String getDiscountmoney() {
        return discountmoney;
    }

    public void setDiscountmoney(String discountmoney) {
        this.discountmoney = discountmoney;
    }

    public String getWaitmoney() {
        return waitmoney;
    }

    public void setWaitmoney(String waitmoney) {
        this.waitmoney = waitmoney;
    }

    public String getOthermoneytxt() {
        return othermoneytxt;
    }

    public void setOthermoneytxt(String othermoneytxt) {
        this.othermoneytxt = othermoneytxt;
    }

    public String getOthermoney() {
        return othermoney;
    }

    public void setOthermoney(String othermoney) {
        this.othermoney = othermoney;
    }

    public BigDecimal getInsurancemoney() {
        if (insurancemoney != null) {
            return new BigDecimal(insurancemoney);
        } else {
            return new BigDecimal("0");
        }
    }

    public void setInsurancemoney(String insurancemoney) {
        this.insurancemoney = insurancemoney;
    }

    public String getQibukm() {
        return qibukm;
    }

    public void setQibukm(String qibukm) {
        this.qibukm = qibukm;
    }

    public String getQibumoney() {
        return qibumoney;
    }

    public void setQibumoney(String qibumoney) {
        this.qibumoney = qibumoney;
    }

    public String getChaochukm() {
        return chaochukm;
    }

    public void setChaochukm(String chaochukm) {
        this.chaochukm = chaochukm;
    }

    public String getChaochumoney() {
        return chaochumoney;
    }

    public void setChaochumoney(String chaochumoney) {
        this.chaochumoney = chaochumoney;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getPaystatus() {
        return paystatus;
    }

    public void setPaystatus(String paystatus) {
        this.paystatus = paystatus;
    }

    public String getPaytype() {
        return paytype;
    }

    public void setPaytype(String paytype) {
        this.paytype = paytype;
    }

    public String getTousustatus() {
        return tousustatus;
    }

    public void setTousustatus(String tousustatus) {
        this.tousustatus = tousustatus;
    }

    public String getTousutime() {
        return tousutime;
    }

    public void setTousutime(String tousutime) {
        this.tousutime = tousutime;
    }

    public String getTousutxt() {
        return tousutxt;
    }

    public void setTousutxt(String tousutxt) {
        this.tousutxt = tousutxt;
    }

    public String getCancelstatus() {
        return cancelstatus;
    }

    public void setCancelstatus(String cancelstatus) {
        this.cancelstatus = cancelstatus;
    }

    public String getCanceltime() {
        return canceltime;
    }

    public void setCanceltime(String canceltime) {
        this.canceltime = canceltime;
    }

    public String getCanceltxt() {
        return canceltxt;
    }

    public void setCanceltxt(String canceltxt) {
        this.canceltxt = canceltxt;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "id='" + id + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", driver_id='" + driver_id + '\'' +
                ", cusphone='" + cusphone + '\'' +
                ", chufaaddress='" + chufaaddress + '\'' +
                ", chufalong='" + chufalong + '\'' +
                ", chufalat='" + chufalat + '\'' +
                ", starttime='" + starttime + '\'' +
                ", mudiaddress='" + mudiaddress + '\'' +
                ", mudilong='" + mudilong + '\'' +
                ", mudilat='" + mudilat + '\'' +
                ", waittime='" + waittime + '\'' +
                ", endtime='" + endtime + '\'' +
                ", pricetype=" + pricetype +
                ", xiadantime='" + xiadantime + '\'' +
                ", jiedantime='" + jiedantime + '\'' +
                ", drivestatus='" + drivestatus + '\'' +
                ", orderstatus=" + orderstatus +
                ", qianwangtime='" + qianwangtime + '\'' +
                ", daodatime='" + daodatime + '\'' +
                ", drivetotaltime='" + drivetotaltime + '\'' +
                ", drivetotalmile='" + drivetotalmile + '\'' +
                ", ordertype='" + ordertype + '\'' +
                ", coupon_id='" + coupon_id + '\'' +
                ", discountmoney='" + discountmoney + '\'' +
                ", waitmoney='" + waitmoney + '\'' +
                ", othermoneytxt='" + othermoneytxt + '\'' +
                ", othermoney='" + othermoney + '\'' +
                ", insurancemoney='" + insurancemoney + '\'' +
                ", qibukm='" + qibukm + '\'' +
                ", qibumoney='" + qibumoney + '\'' +
                ", chaochukm='" + chaochukm + '\'' +
                ", chaochumoney='" + chaochumoney + '\'' +
                ", money='" + money + '\'' +
                ", paystatus='" + paystatus + '\'' +
                ", paytype='" + paytype + '\'' +
                ", tousustatus='" + tousustatus + '\'' +
                ", tousutime='" + tousutime + '\'' +
                ", tousutxt='" + tousutxt + '\'' +
                ", cancelstatus='" + cancelstatus + '\'' +
                ", canceltime='" + canceltime + '\'' +
                ", canceltxt='" + canceltxt + '\'' +
                ", createtime='" + createtime + '\'' +
                ", traceId=" + traceId +
                ", locusdata='" + locusdata + '\'' +
                ", tempname='" + tempname + '\'' +
                ", tempprice='" + tempprice + '\'' +
                ", iswaittimeout='" + iswaittimeout + '\'' +
                ", shishoumoney='" + shishoumoney + '\'' +
                ", royaltymoney='" + royaltymoney + '\'' +
                ", royalty='" + royalty + '\'' +
                ", reward_money='" + reward_money + '\'' +
                '}';
    }
}
